<%@ page import="com.bean.User" %><%--
  Created by IntelliJ IDEA.
  User: WuLiangHang
  Date: 2021/9/22
  Time: 14:08
  To change this template use File | Settings | File Templates.
--%>
<%
    User user = (User) session.getAttribute("user");
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
<h1>欢迎，
    <%if (user != null && user != null) {%>
    <%=user.getUsername()%><%}%>(用户名)登录成功！</h1>
<a href="./logout02.do">点击注销</a>
</body>
</html>
